package me.zhengjie.minbearwcs.controller.agv;

import lombok.RequiredArgsConstructor;
import me.zhengjie.minbearwcs.entity.DTO.agv.TUSK.TUSKContentPool;
import me.zhengjie.minbearwcs.entity.DTO.agv.TUSK.TUSKFeedBackTask;
import me.zhengjie.minbearwcs.entity.DTO.agv.TUSK.TUSKResponse;
import me.zhengjie.minbearwcs.serivce.agv.AgvService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequiredArgsConstructor
public class AgvController {

    private final AgvService agvService;

    @PostMapping("/feedbackTask")
    public TUSKResponse feedbackTask(@RequestBody TUSKFeedBackTask tuskFeedBackTask){
        agvService.feedbackTask(tuskFeedBackTask);
        return new TUSKResponse(TUSKContentPool.TUSK_SUCCESS_CODE,"");
    }
}
